Platform Explorer / Nuxeo Platform 2023.11

Contribution org.nuxeo.ecm.platform.comment.manager.migrator--configuration

This contribution is part of XML component org.nuxeo.ecm.platform.comment.manager.migrator inside nuxeo-platform-comment-2023.11.13.jar /OSGI-INF/comment-migration.xml

Extension Point

Extension point configuration of component MigrationService.

Registration Order

2
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <migration id="comment-storage">
          <description label="migration.comment-storage">Migration of the comment storage model</description>
          <class>org.nuxeo.ecm.platform.comment.impl.CommentsMigrator</class>
          <defaultState>secured</defaultState>
          <state id="relation">
            <description label="migration.comment-storage.relation">Comments stored as relations</description>
          </state>
          <state id="property">
            <description label="migration.comment-storage.property">Comments stored with their parent id as property
            </description>
          </state>
          <state id="secured">
            <description label="migration.comment-storage.secured">Comments stored under the commented document
            </description>
          </state>
    
          <step fromState="relation" id="relation-to-property" toState="property">
            <description label="migration.comment-storage.relation-to-property">Migrate comments from relations to the
              parent id property usage
            </description>
          </step>
          <step fromState="property" id="property-to-secured" toState="secured">
            <description label="migration.comment-storage.property-to-secured">Migrate comments under the commented document
            </description>
          </step>
        </migration>

    Migrate comments under the commented document

XML Source

<extension point="configuration" target="org.nuxeo.runtime.migration.MigrationService">

    <migration id="comment-storage">
      <description label="migration.comment-storage">Migration of the comment storage model</description>
      <class>org.nuxeo.ecm.platform.comment.impl.CommentsMigrator</class>
      <defaultState>secured</defaultState>
      <state id="relation">
        <description label="migration.comment-storage.relation">Comments stored as relations</description>
      </state>
      <state id="property">
        <description label="migration.comment-storage.property">Comments stored with their parent id as property
        </description>
      </state>
      <state id="secured">
        <description label="migration.comment-storage.secured">Comments stored under the commented document
        </description>
      </state>

      <step fromState="relation" id="relation-to-property" toState="property">
        <description label="migration.comment-storage.relation-to-property">Migrate comments from relations to the
          parent id property usage
        </description>
      </step>
      <step fromState="property" id="property-to-secured" toState="secured">
        <description label="migration.comment-storage.property-to-secured">Migrate comments under the commented document
        </description>
      </step>
    </migration>

  </extension>